#!/bin/bash

echo "pack start..."

GRADLE="../gradlew -b ../build.gradle -c ../settings.gradle"

chmod +x ../gradlew

echo Please select output:
echo "1.EntertainmentRelease all(DEMO/APK)"
echo "2.EntertainmentRelease.apk"
echo "3.EntertainmentPreRelease.apk"
echo "4.EntertainmentTest.apk"

read answer
if [ $answer -eq 1 ];
then
    echo "pack EntertainmentRelease all(DEMO/APK)..."
    ${GRADLE} PACK_ENTERTAINMENT_RELEASE_APK_ALL
elif [ $answer -eq 2 ];
then
    echo "pack EntertainmentRelease.apk..."
    ${GRADLE} PACK_ENTERTAINMENT_RELEASE_APK
elif [ $answer -eq 3 ];
then
    echo "pack EntertainmentPreRelease.apk..."
    ${GRADLE} PACK_ENTERTAINMENT_PRE_APK
else
    echo "pack EntertainmentTest.apk..."
    ${GRADLE} PACK_ENTERTAINMENT_TEST_APK
fi

echo "pack done"


